package stub

import (
	"happy-go/microservice/rpc/proxy/handler"
	"net/rpc"
)

//ClickServicer click service interface
type ClickServicer interface {
	Click(request string, replay *string) error
}

//RegisterClickService 用接口进行解耦，只关注方法而不是结构体本身
func RegisterClickService(srv ClickServicer) error {
	return rpc.RegisterName(handler.ClickServiceName, srv)
}
